package com.zhihao.zhihaopicturebackend.model.dto.space;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

//@ApiModel(value = "空间编辑请求")
@Data
public class SpaceEditRequest implements Serializable {

    /**
     * 空间 id
     */
    @ApiModelProperty(value = "空间id")
    @NotNull(message = "id 不能为空")
    @Min(value = 1, message = "id 不能为负数")
    private Long id;

    /**
     * 空间名称
     */
    @ApiModelProperty(value = "空间名称")
    private String spaceName;

    private static final long serialVersionUID = 1L;
}
